package com.itcg.springboot03deptemptest.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Task {
    @Scheduled(cron = "0/5 * * * * *")
    public void task(){
        System.out.println("定时任务执行了");
    }
}
